package com.ssmTest.controller;

import com.ssmTest.model.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by zor on 2018/4/3.
 */
@Controller
public class RestMobileController {

  @RequestMapping(value = "/userinfomations/{id}",method = RequestMethod.GET)
  @ResponseBody
  public Result getUserInfomation(@PathVariable("id") String id,
                                  String data,
                                  String page,
                                  String keywords) {
    Result result = new Result();

    result.setCode(1);
    return result;
  }

  @RequestMapping(value = "/userinfomations/{id}",method = RequestMethod.PUT)
  @ResponseBody
  public Result putUserInfomation(@PathVariable("id") String id,
                                  String data,
                                  String page,
                                  String keywords) {
    Result result = new Result();

    result.setCode(1);
    return result;
  }

}
